package com.ziguang.redwood.admin.service;

import com.jfinal.plugin.activerecord.Db;

public class LoginService {
	public static final LoginService me = new LoginService();

	public Long query(String userName, String userPwd) {
		Long userCount = Db.queryLong("select count(*) from rw_admin where user_name = ? and user_pwd = ?", userName,
				userPwd);
		return userCount;
	}
}
